#ifndef __BIN_SERVO_H__
#define __BIN_SERVO_H__

#include "bin_include.h"


void ServoInit(void);//舵机初始化
#if 0
void ServoOut(int16 duty);//舵机输出
#else

#define ServoReset() ftm_pwm_duty(SERVO_PORT, SERVO_CH,servo_middle)
#define ServoOut(out) ftm_pwm_duty(SERVO_PORT, SERVO_CH,out)

#endif

extern int16_t servo_middle;

#endif